3.27 \(\int \frac{\cos ^2(\frac{1}{4}+x+x^2)}{x} \, dx\)

Optimal. Leaf size=30 \[ \frac{1}{2} \text{Unintegrable}\left (\frac{\cos \left (2 x^2+2 x+\frac{1}{2}\right )}{x},x\right )+\frac{\log (x)}{2} \]

[Out]

Log[x]/2 + Unintegrable[Cos[1/2 + 2*x + 2*x^2]/x, x]/2

________________________________________________________________________________________

Rubi [A]  time = 0.0289977, antiderivative size = 0, normalized size of antiderivative = 0., number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0., Rules used = {} \[ \int \frac{\cos ^2\left (\frac{1}{4}+x+x^2\right )}{x} \, dx \]

Verification is Not applicable to the result.

[In]

Int[Cos[1/4 + x + x^2]^2/x,x]

[Out]

Log[x]/2 + Defer[Int][Cos[1/2 + 2*x + 2*x^2]/x, x]/2

Rubi steps

\begin{align*} \int \frac{\cos ^2\left (\frac{1}{4}+x+x^2\right )}{x} \, dx &=\int \left (\frac{1}{2 x}+\frac{\cos \left (\frac{1}{2}+2 x+2 x^2\right )}{2 x}\right ) \, dx\\ &=\frac{\log (x)}{2}+\frac{1}{2} \int \frac{\cos \left (\frac{1}{2}+2 x+2 x^2\right )}{x} \, dx\\ \end{align*}

Mathematica [A]  time = 7.9712, size = 0, normalized size = 0. \[ \int \frac{\cos ^2\left (\frac{1}{4}+x+x^2\right )}{x} \, dx \]

Verification is Not applicable to the result.

[In]

Integrate[Cos[1/4 + x + x^2]^2/x,x]

[Out]

Integrate[Cos[1/4 + x + x^2]^2/x, x]

________________________________________________________________________________________

Maple [A]  time = 0.126, size = 0, normalized size = 0. \begin{align*} \int{\frac{1}{x} \left ( \cos \left ({\frac{1}{4}}+x+{x}^{2} \right ) \right ) ^{2}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(1/4+x+x^2)^2/x,x)

[Out]

int(cos(1/4+x+x^2)^2/x,x)

________________________________________________________________________________________

Maxima [A]  time = 0., size = 0, normalized size = 0. \begin{align*} \frac{1}{2} \, \int \frac{\cos \left (2 \, x^{2} + 2 \, x + \frac{1}{2}\right )}{x}\,{d x} + \frac{1}{2} \, \log \left (x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(1/4+x+x^2)^2/x,x, algorithm="maxima")

[Out]

1/2*integrate(cos(2*x^2 + 2*x + 1/2)/x, x) + 1/2*log(x)

________________________________________________________________________________________

Fricas [A]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\cos \left (x^{2} + x + \frac{1}{4}\right )^{2}}{x}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(1/4+x+x^2)^2/x,x, algorithm="fricas")

[Out]

integral(cos(x^2 + x + 1/4)^2/x, x)

________________________________________________________________________________________

Sympy [A]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos ^{2}{\left (x^{2} + x + \frac{1}{4} \right )}}{x}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(1/4+x+x**2)**2/x,x)

[Out]

Integral(cos(x**2 + x + 1/4)**2/x, x)

________________________________________________________________________________________

Giac [A]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos \left (x^{2} + x + \frac{1}{4}\right )^{2}}{x}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(1/4+x+x^2)^2/x,x, algorithm="giac")

[Out]

integrate(cos(x^2 + x + 1/4)^2/x, x)